<?php
use yii\helpers\Html;
use yii\helpers\Url;
//use yii\bootstrap\ActiveForm;
use yii\widgets\ActiveForm;
?>


<!--编辑友情链接开始-->
<div class="modal-dialog ">
	<div class="modal-content">
		<div class="modal-header">
			<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
			<h4 class="modal-title">编辑友情链接导航</h4>
		</div>
		<?php
		$form = ActiveForm::begin([
			'options' => ['class' => 'form-horizontal', 'id'=>'navigation-form','enctype' => 'multipart/form-data'],
			'action'=>Url::to(['system/friendlinkupd']),
			'method'=>'post',
			'fieldConfig' => [
				'template' => '<div class="row form-group">
  <div class="col-md-3 control-label">{label}</div>
  <div class="col-md-8 controls">{input}{error}</div></div>'
			],
		]);
		?>
		<div class="modal-body">
			<div class="row form-group">

				<?= $form->field($model, 'link_id',['template'=>"{input}"])->hiddenInput(['class'=>'form-control']) ?>

				<?= $form->field($model, 'link_name')->textInput(['maxlength' => true,'class'=>'form-control']) ?>

				<?= $form->field($model, 'link_url')->textInput(['maxlength' => true,'class'=>'form-control']) ?>

				<?= $form->field($model, 'link_order')->textInput(['maxlength' => true,'class'=>'form-control']) ?>

				<?= $form->field($model, 'link_logo')->fileInput(['maxlength' => true,'class'=>'form-control']) ?>

			</div>
		</div>
		<div class="modal-footer">
			<?= Html::Button('取消', ['class' => 'btn btn-link','data-dismiss'=>'modal']) ?>
			<?= Html::submitButton('保存', ['class' => 'btn btn-primary']) ?>
		</div>
		<?php ActiveForm::end(); ?>
	</div>
</div>
<!--编辑友情链接结束-->